package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RegisterCompanyMapper;
import com.ruoyi.system.domain.RegisterCompany;
import com.ruoyi.system.service.IRegisterCompanyService;

/**
 * 注册公司信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
@Service
public class RegisterCompanyServiceImpl implements IRegisterCompanyService 
{
    @Autowired
    private RegisterCompanyMapper registerCompanyMapper;

    /**
     * 查询注册公司信息管理
     * 
     * @param registerCompanyId 注册公司信息管理主键
     * @return 注册公司信息管理
     */
    @Override
    public RegisterCompany selectRegisterCompanyByRegisterCompanyId(Long registerCompanyId)
    {
        return registerCompanyMapper.selectRegisterCompanyByRegisterCompanyId(registerCompanyId);
    }

    /**
     * 查询注册公司信息管理列表
     * 
     * @param registerCompany 注册公司信息管理
     * @return 注册公司信息管理
     */
    @Override
    public List<RegisterCompany> selectRegisterCompanyList(RegisterCompany registerCompany)
    {
        return registerCompanyMapper.selectRegisterCompanyList(registerCompany);
    }

    /**
     * 新增注册公司信息管理
     * 
     * @param registerCompany 注册公司信息管理
     * @return 结果
     */
    @Override
    public int insertRegisterCompany(RegisterCompany registerCompany)
    {
        return registerCompanyMapper.insertRegisterCompany(registerCompany);
    }

    /**
     * 修改注册公司信息管理
     * 
     * @param registerCompany 注册公司信息管理
     * @return 结果
     */
    @Override
    public int updateRegisterCompany(RegisterCompany registerCompany)
    {
        return registerCompanyMapper.updateRegisterCompany(registerCompany);
    }

    /**
     * 批量删除注册公司信息管理
     * 
     * @param registerCompanyIds 需要删除的注册公司信息管理主键
     * @return 结果
     */
    @Override
    public int deleteRegisterCompanyByRegisterCompanyIds(Long[] registerCompanyIds)
    {
        return registerCompanyMapper.deleteRegisterCompanyByRegisterCompanyIds(registerCompanyIds);
    }

    /**
     * 删除注册公司信息管理信息
     * 
     * @param registerCompanyId 注册公司信息管理主键
     * @return 结果
     */
    @Override
    public int deleteRegisterCompanyByRegisterCompanyId(Long registerCompanyId)
    {
        return registerCompanyMapper.deleteRegisterCompanyByRegisterCompanyId(registerCompanyId);
    }
}
